| Conditions | 1 | 
| Total Lines | 65 | 
| Code Lines | 58 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | import { graphql } from "gatsby" | 
            ||
| 9 |   render() { | 
            ||
| 10 |     const { affiche } = this.props.data | 
            ||
| 11 | return (  | 
            ||
| 12 | <Layout>  | 
            ||
| 13 | <SEO  | 
            ||
| 14 | lang="nl-BE"  | 
            ||
| 15 | title="Lunch vd lege portemonnee - Takeaway!"  | 
            ||
| 16 | description="Lege portemonnee Takeaway! - Bestelformulier"  | 
            ||
| 17 |           path={this.props.location.pathname} | 
            ||
| 18 | />  | 
            ||
| 19 |         <div className={`limited-width_wrapper`}> | 
            ||
| 20 | <header>  | 
            ||
| 21 | <h1>Lunch van de lege portemonnee - Takeaway</h1>  | 
            ||
| 22 | </header>  | 
            ||
| 23 | <main>  | 
            ||
| 24 | <h2>Zaterdag 20 februari 2021</h2>  | 
            ||
| 25 | <p>  | 
            ||
| 26 | Door de corona-beperkingen wordt de Lunch vd Lege Portemonne helaas een Take Away versie. Daarom stellen  | 
            ||
| 27 | we een aantal gerechten voor, die standaard bij onze Lunch horen en waarvan u kan genieten bij een wijntje  | 
            ||
| 28 | of drankje bij u thuis.  | 
            ||
| 29 | </p>  | 
            ||
| 30 | |||
| 31 | <p>Op het menu:</p>  | 
            ||
| 32 | <ul>  | 
            ||
| 33 | <li>Ajuinsoep met kaas - 1L: 8€ per portie</li>  | 
            ||
| 34 | <li>Balletjes in tomatensaus met puree: 10€ per portie</li>  | 
            ||
| 35 | <li>Winterstoemp met spekjes en chipolatta: 11€ per portie</li>  | 
            ||
| 36 | <li>Witloof in den oven met puree: 12€ per portie</li>  | 
            ||
| 37 | <li>Dessert - chocomousse of pannenkoeken met suiker (2): 5€</li>  | 
            ||
| 38 | </ul>  | 
            ||
| 39 | <p>  | 
            ||
| 40 | <strong>Bestellen kan tot en met woensdag 17 februari 2021!</strong>  | 
            ||
| 41 | </p>  | 
            ||
| 42 | <p>  | 
            ||
| 43 | Opgelet: Je kan een afhaalmoment kiezen bij het bestellen (16:00 - 20:00). Betalen kan ter plaatse cash  | 
            ||
| 44 | (liefst gepast).  | 
            ||
| 45 | </p>  | 
            ||
| 46 | |||
| 47 | <p>  | 
            ||
| 48 | Wie bijkomende vragen heeft kan terecht op [email protected].  | 
            ||
| 49 | <br />  | 
            ||
| 50 | Alvast bedankt! En graag tot in 2022 voor opnieuw een face-to-face versie van deze Lunch vd Leige  | 
            ||
| 51 | Portemonnee!  | 
            ||
| 52 | </p>  | 
            ||
| 53 | |||
| 54 | <tbkr-bm-widget  | 
            ||
| 55 | restaurant-id="34742560"  | 
            ||
| 56 | source="website"  | 
            ||
| 57 | use-modal="0"  | 
            ||
| 58 | lang="nl"  | 
            ||
| 59 | theme="light"  | 
            ||
| 60 | primary-color="#4b9b48"  | 
            ||
| 61 | takeaway="1"  | 
            ||
| 62 | ></tbkr-bm-widget>  | 
            ||
| 63 | <script src="https://reservations.tablebooker.com/tbkr-widget-import.min.js"></script>  | 
            ||
| 64 | |||
| 65 | <GatsbyImage  | 
            ||
| 66 |               image={{ | 
            ||
| 67 | ...affiche.childImageSharp.gatsbyImageData,  | 
            ||
| 68 | }}  | 
            ||
| 69 | alt="Sinterklaas Takeaway"  | 
            ||
| 70 | />  | 
            ||
| 71 | </main>  | 
            ||
| 72 | </div>  | 
            ||
| 73 | </Layout>  | 
            ||
| 74 | )  | 
            ||
| 87 |